home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / doortime.zip / DOORTIME.DOC < prev   
Text File  |  1991-09-29  |  2KB  |  43 lines

  1.  
  2. DOORTIME.COM                               (c) 1989,1990  Karl Schneider
  3.                                            S & H Engineering, Inc.
  4.                                            8505 Woodwick Ct.
  5.                                            Tampa, FL 33615
  6.                                            813-884-9661 voice
  7.                                            BBS is offline for a while
  8.  
  9.  
  10. Doortime is a small and quick little program that will let you
  11. restrict Doors or any DOS activity to a certain time period during
  12. the day.
  13. It compares the current time with the times entered on the DOORTIME
  14. command line and return an ERRORLEVEL 1 if the current time is either
  15. before or after the time 'window' selected.  
  16.  
  17. Put DOORTIME at the beginning of the DOORx.BAT you want to restrict
  18. to certain times, for example:
  19.  
  20. DOOR2.BAT >>>>
  21.  
  22.          doortime 10 30 17 00
  23.          if errorlevel 1 goto sorry
  24.          cd\doors\games
  25.          somegame somegame.cfg
  26.          goto done
  27.          :sorry
  28.          echo Sorry, this door is only open from 10:30 a.m. to 5:00 p.m.>com1
  29.          :done
  30.          cd\wildcat
  31.  
  32. change the directory names and COM port to suit your system.
  33. In the DOORTIME command line, 10 30 17 00 (SPACES REQUIRED!)
  34. means 10:30 (a.m.) and 5:00 (p.m.).  If the 'open door' crosses
  35. over midnight, be sure you enter the starting and ending OPEN times
  36. in the correct order, like: doortime 22 00 04 00
  37.  
  38. In your DOORS.BBS (.SCR) file you should indicate time-restricted
  39. doors, maybe with an asterisk and a footnote to save your users from
  40. wasting their (and your) time trying to open locked doors.
  41.  
  42. -----------------------------------------------------------------
  43.